package com.qeegoo.b2bautozityp.injector.module;

import com.qeegoo.b2bautozityp.api.RequestApi;
import com.qeegoo.b2bautozityp.injector.PerActivity;
import com.qeegoo.b2bautozityp.moudle.base.AppBar;
import com.qeegoo.b2bautozityp.moudle.goods.viewmodel.GoodsDetailViewModel;

import dagger.Module;
import dagger.Provides;

/**
 * 王少岩 在 2017/9/13 创建了它
 */

@Module
public class GoodsDetailModule {

    @Provides
    @PerActivity
    public AppBar provideAppBar() {
        AppBar appBar = new AppBar("");
        return appBar;
    }

    @Provides
    @PerActivity
    public GoodsDetailViewModel provideViewModel(RequestApi requestApi) {
        GoodsDetailViewModel viewModel = new GoodsDetailViewModel(requestApi);
        return viewModel;
    }

}
